from machine import Pin,I2C
from servo import Servos
import utime=
i2c=I2C(1, sda=Pin(0), scl=Pin(1),freq=400000)
arm= Servos(i2c,address=0x40)
arm.position(0,90)
utime.sleep(0.1)
arm.position(2,70)
utime.sleep(0.1)
arm.position(3,135)#@
utime.sleep(0.1)
arm.position(6,45)#@
utime.sleep(0.1)
arm.position(8,90)
utime.sleep(0.1)
arm.position(10,130)
utime.sleep(3)

for i in range(45,145) :
    arm.position(0,i)
    utime.sleep_ms(5)
for i in range(145,45,-1) :
    arm.position(0,i)
    utime.sleep_ms(5)

for i in range(45,130) :
    arm.position(2,i)
    utime.sleep_ms(5)
for i in range(130,45,-1) :
    arm.position(2,i)
    utime.sleep_ms(5)
